package com.voice.core.utils;

import java.util.concurrent.atomic.AtomicInteger;

public class MessageUtil {

    private static AtomicInteger messageId=new AtomicInteger(0);

    public static int messageId(){
        int id=messageId.getAndIncrement();
        if(id==Integer.MAX_VALUE){
            messageId.set(0);
        }
        return id;
    }
}
